// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-9-21

#ifndef __GAMEID_H_COMMON_NETMSG__
#define __GAMEID_H_COMMON_NETMSG__

#pragma once

#include "gameiddef.h"

//##ModelId=44CF17B10224
class CJoyGameIdTool
{
public:
	//##ModelId=44CF17B10243
    class CAttribute
    {
    public:
		//##ModelId=44CF17B10244
        CString m_levelName;
		//##ModelId=44CF17B10245
        CString m_titleName;
		//##ModelId=44CF17B10246
        CString m_winName;
		//##ModelId=44CF17B10247
        CString m_lossName;
		//##ModelId=44CF17B10251
        CString m_battleGroupName;
		//##ModelId=44CF17B10252
        CString m_scoreName;
		//##ModelId=44CF17B10253
        CString m_prizeName;
		//##ModelId=44CF17B10254
        CString m_creditName;
		//##ModelId=44CF17B10255
        CString m_ladderName;

		//##ModelId=44CF17B10256
        bool    m_hasLevel;
		//##ModelId=44CF17B10257
        bool    m_hasTitle;
		//##ModelId=44CF17B10261
        bool    m_hasWinLoss;
		//##ModelId=44CF17B10262
        bool    m_hasBattleGroup;
		//##ModelId=44CF17B10263
        bool    m_hasScore;
		//##ModelId=44CF17B10264
        bool    m_hasPrize;
		//##ModelId=44CF17B10265
        bool    m_hasCredit;
		//##ModelId=44CF17B10266
        bool    m_hasLadder;
		//##ModelId=44CF17B10267
        CAttribute();
    };
protected:
	//##ModelId=44CF17B10235
    CMap<UINT, UINT, CAttribute, CAttribute&>  m_attributes;

public:
	//##ModelId=44CF17B10239
    CJoyGameIdTool();

	//##ModelId=44CF17B1023A
    CAttribute& GetAttribue(UINT gameId);
};

extern CJoyGameIdTool g_gameIdTool;


#endif  // __GAMEID_H_COMMON_NETMSG__
